package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName coding_rules
 */
@TableName(value ="coding_rules")
public class CodingRules implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String rulename;

    /**
     * 
     */
    private String batchnum;

    /**
     * 
     */
    private String serialnum;

    /**
     * 
     */
    private String randomnum;

    /**
     * 
     */
    private String isolate;

    /**
     * 
     */
    private String appid;

    /**
     * 
     */
    private String trainingid;

    /**
     * 
     */
    private String userid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getRulename() {
        return rulename;
    }

    /**
     * 
     */
    public void setRulename(String rulename) {
        this.rulename = rulename;
    }

    /**
     * 
     */
    public String getBatchnum() {
        return batchnum;
    }

    /**
     * 
     */
    public void setBatchnum(String batchnum) {
        this.batchnum = batchnum;
    }

    /**
     * 
     */
    public String getSerialnum() {
        return serialnum;
    }

    /**
     * 
     */
    public void setSerialnum(String serialnum) {
        this.serialnum = serialnum;
    }

    /**
     * 
     */
    public String getRandomnum() {
        return randomnum;
    }

    /**
     * 
     */
    public void setRandomnum(String randomnum) {
        this.randomnum = randomnum;
    }

    /**
     * 
     */
    public String getIsolate() {
        return isolate;
    }

    /**
     * 
     */
    public void setIsolate(String isolate) {
        this.isolate = isolate;
    }

    /**
     * 
     */
    public String getAppid() {
        return appid;
    }

    /**
     * 
     */
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * 
     */
    public String getTrainingid() {
        return trainingid;
    }

    /**
     * 
     */
    public void setTrainingid(String trainingid) {
        this.trainingid = trainingid;
    }

    /**
     * 
     */
    public String getUserid() {
        return userid;
    }

    /**
     * 
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CodingRules other = (CodingRules) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRulename() == null ? other.getRulename() == null : this.getRulename().equals(other.getRulename()))
            && (this.getBatchnum() == null ? other.getBatchnum() == null : this.getBatchnum().equals(other.getBatchnum()))
            && (this.getSerialnum() == null ? other.getSerialnum() == null : this.getSerialnum().equals(other.getSerialnum()))
            && (this.getRandomnum() == null ? other.getRandomnum() == null : this.getRandomnum().equals(other.getRandomnum()))
            && (this.getIsolate() == null ? other.getIsolate() == null : this.getIsolate().equals(other.getIsolate()))
            && (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid()))
            && (this.getTrainingid() == null ? other.getTrainingid() == null : this.getTrainingid().equals(other.getTrainingid()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRulename() == null) ? 0 : getRulename().hashCode());
        result = prime * result + ((getBatchnum() == null) ? 0 : getBatchnum().hashCode());
        result = prime * result + ((getSerialnum() == null) ? 0 : getSerialnum().hashCode());
        result = prime * result + ((getRandomnum() == null) ? 0 : getRandomnum().hashCode());
        result = prime * result + ((getIsolate() == null) ? 0 : getIsolate().hashCode());
        result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode());
        result = prime * result + ((getTrainingid() == null) ? 0 : getTrainingid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", rulename=").append(rulename);
        sb.append(", batchnum=").append(batchnum);
        sb.append(", serialnum=").append(serialnum);
        sb.append(", randomnum=").append(randomnum);
        sb.append(", isolate=").append(isolate);
        sb.append(", appid=").append(appid);
        sb.append(", trainingid=").append(trainingid);
        sb.append(", userid=").append(userid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}